/*
 * @Description: 上传测试页面
 * @Author: Rfan
 * @Date: 2022-01-12 15:41:26
 * @LastEditTime: 2022-01-13 09:43:41
 */

import { FC, useState } from 'react';
import { Button, Upload } from 'antd';
import { UploadOutlined } from '@ant-design/icons';

export const SystemUpload: FC = () => {
  const [fileList, setFileList] = useState([]);
  const props = {
    action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76'
  };
  return (
    <div>
      <Upload {...props} fileList={fileList}>
        <Button icon={<UploadOutlined />}>Upload</Button>
      </Upload>
    </div>
  );
};

export default SystemUpload;
